package com.eco.fanliapp.common.constant;

import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: fanliapp
 * @Package: com.eco.fanliapp.common.constant
 * @ClassName: ApiEnum
 * @Author: xiaoxx
 * @Description: 微信分享配置
 * @Date: 2019/11/28 14:12
 * @Version: 4.2.2
 */
@Configuration
public class WechatConfig {
    //《公众平台相关配置》
    /** 微信公众号APPID-生产*/
    public static final String APPID = "wxca287b959edbbfe9";
    /** 微信公众号APPID-测试*/
//    public static final String  APPID = "wxbb15a8a79e972ba2";

    /** 微信公众后台APPSECRET-生产 */
    public static final String APPSECRET = "55c6e3559009ebce552c96605c63915d";
    /** 微信公众后台APPSECRET-测试 */
//    public static final String APPSECRET = "07819cf0a555779114d7a964ef3846bc";
    /** 微信公众号token */
    public static final String TOKEN = "ecoWxTest";
    /** 微信加密 */
    public static final String AESKEY = "azimBAwlTgRUDhBO8iGRieFpJ4C2irTmE0jd5pnktWb";

    //《微信相关接口》
    /** 微信授权回调地址-生产 */
    public static final String RETURNURL = "http://www.shengyaapp.com/consoleshengya/wx/wxOpenAuth/";
    /** 微信授权回调地址-测试 */
//    public static final String RETURNURL = "http://www.shengyaapp.com/consoleshengya/wx/wxOpenAuth/devOper";

    /**分享商品的域名-生产*/
    public static final String  SNS_SHARE_URL = "http://wx.wvqok.cn";
    /**分享商品的域名-测试*/
//    public static final String SNS_SHARE_URL = "http://wxdev.shengyaapp.com";

    /** 渠道打开红包页面-生产*/
    public static  final String RED_MONEY_URL = "http://wx.xingshizhaji.com/app/pages/redMoney/";
    /** 渠道打开红包页面-测试*/
//    public static final String RED_MONEY_URL = "http://wxdev.shengyaapp.com/app/pages/redMoney/";

    /** 社群公司渠道打开红包页面-生产*/
    public static final String RED_MONEY_COMMUNITY_URL = "http://wx.xingshizhaji.com/app/pages/redMoneyCommunity1/";
    /** 社群公司渠道打开红包页面-测试*/
//    public static final String RED_MONEY_COMMUNITY_URL = "http://wxdev.shengyaapp.com/app/pages/redMoneyCommunity1/";


    /** 南阳臻禾部渠道打开红包页面-生产*/
    public static  final String NYZH_RED_MONEY_URL = "http://wx.xingshizhaji.com/app/pages/redMoneyA/#/";
    /** 南阳臻禾部渠道打开红包页面-测试*/
//    public static final String NYZH_RED_MONEY_URL = "http://wxdev.xingshizhaji.com/app/pages/redMoneyA/#/";


    /** 渠道生成短链接-生产 */
    public static final String RED_MONEY_SHARE_URL = "http://api.xingshizhaji.com/mobile/home/channel/pages";
    /** 渠道生成短链接-测试 */
//    public static final String RED_MONEY_SHARE_URL = "http://apidev.shengyaapp.com/mobile/home/channel/pages";

    /**
     * 获取公众号accss_token域名
     */
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    /**
     * 获取公众号下用户openId列表
     */
    public static final String OPENID_LIST_URL = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";
    /**
     * 获取用户信息
     */
    public static final String USER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    /**
     * 发送模板消息
     */
    public static final String SEND_MESSAGE_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
    /**
     * 创建菜单
     */
    public static final String CREATE_MENU_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    //《公众号通知》
    /**
     * 提现到账通知
     */
    public static final String ARRIVAL_ACCOUNT_TEMPLATE_ID = "X1whg_04QBTS9dxbzMqMxNzlekojf9pBpeVBH8j-esc";
    /**
     * 下单成功提醒
     */
    public static final String CHECKOUT_SUCCESS_TEMPLATE_ID = "ozabAHxSj4ieoxJWpEkl_HtX0MwrOwEKbDMNTVrgm7k";
    /**
     * 收货成功提醒
     */
    public static final String SUCCESSFUL_DELIVERY_TEMPLATE_ID = "2u7Fzfx64fwx6Gj1PH9aoqQ6Hlqx109LIZlQGJEJQdM";
    /**
     * 好友下单成功提醒
     */
    public static final String FRIENDS_SUCCEED_TEMPLATE_ID = "swn2rnWw60FwgRGlMBV5j79pBcGpM2UOiS5A0h5dxGI";
    /**
     * 邀请好友成功
     */
    public static final String INVITE_FRIENDS_TEMPLATE_ID = "6wIbXO5MwUwoVsz1TSEXCQme4-ct5UIwHCwMIdgJsYc";
    /**
     * 补贴到账提醒
     */
    public static final String SUBSIDY_ARRIVAL_TEMPLATE_ID = "w0zoXdSr62GA7ETo1E6O2V0tu1zCf0P_qJ-vmzS-A_Y";


    //《消息类型》
    /**
     * 消息类型，event
     */
    public static final String MESSAGE_EVENT = "event";
    /**
     * 消息类型，text
     */
    public static final String MESSAGE_TEXT = "text";

    //《事件类型》
    /**
     * 关注公众号事件
     */
    public static final String EVENT_SUB = "subscribe";
    /**
     * CLICK点击事件
     */
    public static final String EVENT_CLICK = "CLICK";


}
